home *** CD-ROM | disk | FTP | other *** search
/ Champak 43 / Vol 43.iso / games / superdog.swf / scripts / DefineSprite_1118 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-06-25  |  497 b   |  21 lines

  1. this.cacheAsBitmap = true;
  2. onEnterFrame = function()
  3. {
  4.    if(this.hitTest(_parent._parent.man.hitfk))
  5.    {
  6.       if(_parent._parent.inAir == true)
  7.       {
  8.          _parent._parent.man.finish = true;
  9.       }
  10.       else
  11.       {
  12.          _parent._parent.man.finish = true;
  13.          _parent._parent.movlock = true;
  14.          _parent._parent.end = true;
  15.          _parent._parent.man.gotoAndPlay("finish");
  16.       }
  17.       this._visible = false;
  18.       delete this.onEnterFrame;
  19.    }
  20. };
  21.